package com.abiao.shop.redis;

/**
 * @Description: UserKey 用户key
 * @Author: AB
 * @Date: 2021-06-24
 * @Version:v1.0
 */
public class UserKey extends BasePrefix{
    public static final int TOKEN_EXPIRE = 3600*24*2;  //默认过期时间2天
    public UserKey(String prefix) {
        super(prefix);
    }
    public UserKey(int expireSeconds, String prefix) {
        super(expireSeconds,prefix);
    }
    public static UserKey getByID = new UserKey("id");
    public static UserKey getByName = new UserKey("name");
    public static UserKey token = new UserKey(TOKEN_EXPIRE,"token");
}
